<?php $posts = $this->getPosts(); ?>

<div class="warranty">
<div class="box" style="*padding-top: 5px;">
<div class="normal_box">
<div class="border1"><img src="<?php echo $this->getSkinUrl()?>images/border1.png" alt="" /></div>

<div class="c" style="padding: 20px 0 10px 21px;">
<div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml(); ?></div>
<table class="owners_club" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<th style="padding-bottom: 15px;">Don't think that once you have bought your new leisure vehicle you are on your own&hellip;</th>
</tr>
<tr>
<td class="club_t" style="padding-right: 20px;">
<p>There is a warm and friendly welcome waiting for you at the Auto-Trail Owners' Club.</p>
<p>The ATOC organise events in a wide range of locations around the UK and Europe to give you the opportunity to sample something new in the comfort of a group. Enjoy holidays and social occasions with your new friends, and take advantage of the wealth of information, experience and technical information available from other dedicated members.</p>
<p>For more information and details of how owners of new Auto-Trail Motorhomes can be invited to become ATOC members, please contact.</p>
</td>
</tr>
<tr>
<td>
<div id="o_input" class="o_input" style="float: left; margin-left: -5px;">
 <form action="<?php echo $this->getUrl();?>contacts/index/postclub" method ="post" id="club-form-validate" >
<table class="t_box" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<th>Your Contact Name</th>
</tr>
<tr>
<td><input name="name" class="input270 required-entry" type="text" /></td>
</tr>
<tr>
<th>Your Email Address</th>
</tr>
<tr>
<td><input name="email" class="input270 required-entry validate-email" type="text" /></td>
</tr>
<tr>
<th>Your Telephone No.</th>
</tr>
<tr>
<td><input id="text" name="phone" class="input270 required-entry" type="text" /></td>
</tr>
<tr>
<th>Which Auto-Trail Model Do You Own?</th>
</tr>
<tr>
<td>
<div class="moni_s" style="z-index: 1; position: relative;" onclick="CoLeeSelect3(this)">
<input id="attends" class="input270_s " name="whichcar" type="text" value="Please select..." /> 
<ul class="Option" style="border-top: medium none; display: none; left: 2px; list-style: none inside none; top: 28px; width: 264px; z-index: 1000;">
<?php  $collection = Mage::getModel('catalog/product')->getCollection()
							->addFieldToFilter('status',array('in'=>'1'))
							->setOrder('product_order','asc')
							->addAttributeToSelect('*');
							foreach ($collection as $_product){
							$cat_id=$_product->getCategoryIds();
						
					$cats = Mage::getModel('catalog/category')->load($cat_id[0]);?>
<li style="width: 259px ! important; float: left;"><?php echo $cats->getName()?> <?php echo $_product->getName()?></li>
<?php }?>
</ul>
</div>
</td>
</tr>
<tr>
<td style="padding-top: 10px; font-size: 11px;">We will aim to get back to you within 24 hours</td>
</tr>
<tr>
<th style="text-align: right;"><input src="<?php echo $this->getSkinUrl()?>images/enquire.png" type="image" /></th>
</tr>
</tbody>
</table>
</form>
<script type="text/javascript">
    var dataForm = new VarienForm('club-form-validate', true);
    // ]]></script>
</div>

<div class="car_d gallery" style="width: 302px; float: left; border: none; margin-top: 8px;">
<div class="bg_top_y" style="height: 5px;"><img src="<?php echo $this->getSkinUrl()?>images/imgbox_t.png" alt="" /></div>
<div style="border-right: 1px solid #D1D1D1; border-left: 1px solid #D1D1D1;">
<table style="width: 100%;" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="text-align: center; padding-top: 7px;"><img src="<?php echo $this->getSkinUrl()?>images/owers_f.png" alt="" /></td>
</tr>
</tbody>
</table>
<script type="text/javascript" language="javascript">
  var total_temp = <?php echo count($posts); ?>;
 </script>
 <script src="<?php echo $this->getSkinUrl()?>js/pic_slide.js" type="text/javascript"></script>
<div class="c" style="border: none; background: #fff; padding: 5px;">
<div class="picshow_main" style="height: 218px; width: 100%;">
<div>
<?php $i=1; foreach ($posts as $post):?>
<?php $fileurl=Mage::getBaseUrl('media').$post->getNfile(); ?>
<div id="url_<?php echo $i;?>" style="position: relative; <?php if ($i==1) {echo 'display: block';}else{echo 'display: none;';}?>">
<!--<a style="cursor: pointer;" rel="shadowbox[Aston Martin];" href="<?php echo $fileurl; ?>">-->
<img id="pic" class="imgbig2" src="<?php echo Mage::getModel('imageresize/imagemodel')->init($fileurl)->resize(291,198)?>" alt="" />
<!--</a> -->
</div>
<?php $i++; endforeach;?>


</div>
<div class="picshow_change" style="left: 20px; bottom: -3px;"><a class="slide_left" href="javascript:s_preview()">
<img src="<?php echo $this->getSkinUrl()?>images/left_s.png" alt="" /></a>
<div class="circle_slide">
<?php $j=1; foreach ($posts as $post):?>
<a id="s_c_<?php echo $j;?>" class="<?php if( $j==1)echo 'bxx'; else echo 'axx'?>" href="javascript:changeimg(<?php echo $j;?>);" target="_self">
<img src="<?php echo $this->getSkinUrl()?>images/circle.png" alt="" /></a> 
<?php $j++; endforeach;?>

 </div>
<a class="slide_right right" href="javascript:s_next()">
<img src="<?php echo $this->getSkinUrl()?>images/right_s.png" alt="" /></a>
</div>
</div>
</div>
</div>
<div class="bg_top_y" style="height: 5px;"><img src="<?php echo $this->getSkinUrl()?>images/imgbox_b.png" alt="" /></div>
</div>
</td>
</tr>
<tr>
<td class="club_t">
<p><span class="title_s">Alternate Contact:</span> Mrs Sally Boswell - Acting Secretary, 20 Linden Close, Radstock, Somerset, BA3 3EJ. Tel: 01761 433996</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="border1"><img src="<?php echo $this->getSkinUrl()?>images/border1.png" alt="" /></div>
</div>
</div>
<div class="bg_bottom_y"><img src="<?php echo $this->getSkinUrl()?>images/contact_bg_bottom.gif" alt="" /></div>
</div>